package com.flyme.module.base.provider.service.impl;

import com.flyme.core.base.supper.service.impl.BaseServiceImpl;
import com.flyme.module.base.client.entity.SysVipPrice;
import com.flyme.module.base.provider.mapper.SysVipPriceMapper;
import com.flyme.module.base.provider.service.SysVipPriceService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author: zyf
 * @date: 2018/10/24 16:33
 * @description:
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class SysVipPriceServiceImpl extends BaseServiceImpl<SysVipPriceMapper, SysVipPrice> implements SysVipPriceService {

    /**
     * 根据vip类型及设备类型查询vip价格
     */
    public List<SysVipPrice> selectByType(Long vipTypeId){
        return list(q().eq("vipTypeId", vipTypeId).orderByAsc("sortOrder"));
    }


}
